package com.alinesno.cloud.alinesno.student.demo.wfj01.entity;

import javax.persistence.Column;
import java.util.Date;
import javax.persistence.Table;
import javax.persistence.Entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.alinesno.cloud.common.facade.orm.entity.BaseEntity;


/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-04-07 14:34:31
 */
@Entity
@Table(name="learn_student")
public class LearnStudentEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 学生名称
     */
	@Column(name="student_name")
	private String studentName;
    /**
     * 学号
     */
	@Column(name="student_number")
	private String studentNumber;
    /**
     * 所在学院
     */
	@Column(name="college_id")
	private String collegeId;
    /**
     * 所在班级
     */
	@Column(name="class_id")
	private String classId;
    /**
     * 入学时间
     */
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date admission;


	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public String getStudentNumber() {
		return studentNumber;
	}

	public void setStudentNumber(String studentNumber) {
		this.studentNumber = studentNumber;
	}

	public String getCollegeId() {
		return collegeId;
	}

	public void setCollegeId(String collegeId) {
		this.collegeId = collegeId;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public Date getAdmission() {
		return admission;
	}

	public void setAdmission(Date admission) {
		this.admission = admission;
	}


	@Override
	public String toString() {
		return "LearnStudentEntity{" +
			"studentName=" + studentName +
			", studentNumber=" + studentNumber +
			", collegeId=" + collegeId +
			", classId=" + classId +
			", admission=" + admission +
			"}";
	}
}
